
package com.example.acroandroiduser;

import android.os.Bundle;
import android.os.Handler;
import android.app.Activity;
import android.content.Intent;
import android.graphics.Typeface;
import android.view.Menu;
import android.widget.TextView;
public class MainActivity extends Activity {
	
	TextView tv;	

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
		Typeface tf = Typeface.createFromAsset(getAssets(),
		        "FuturaLightBT.ttf");
		tv = (TextView) findViewById(R.id.mainTitle);
		tv.setTypeface(tf);
		int secondsDelayed = 3;
        new Handler().postDelayed(new Runnable() {
                public void run() {
                        startActivity(new Intent(MainActivity.this, TitlepageActivity.class));
                        //finish();
                }
        }, secondsDelayed * 1000);
 
		
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.main, menu);
		return true;
	}

}
